<?php 
	$img = __get_post_image( $post->ID );
	if ( $img ) {
		$link = $img->guid;
?>
<div class="entry-image">
	<a href="<?php the_permalink() ?>" rel="bookmark">
		<img src="<?php echo $link; ?>" title="<?php the_title(); ?>"/></a>
</div>
<?php 
	}
?>